home *** CD-ROM | disk | FTP | other *** search
/ Easy Baby Massage / Easy Baby Massage.iso / pc / content / main.dcr / Internal_54_roll down.ls < prev    next >
Encoding:
Text File  |  2007-04-22  |  699 b   |  33 lines

  1. global chaptercount, firstchapter
  2.  
  3. on beginSprite
  4.   check()
  5. end
  6.  
  7. on mouseDown
  8.   firstchapter = firstchapter + 1
  9.   if firstchapter > (chaptercount - 8) then
  10.     firstchapter = chaptercount - 8
  11.   end if
  12.   reflashchapterlist()
  13.   check()
  14. end
  15.  
  16. on check
  17.   if chaptercount < 10 then
  18.     sprite(the currentSpriteNum - 1).locH = -320
  19.     sprite(the currentSpriteNum).locH = -320
  20.   else
  21.     if firstchapter = 1 then
  22.       sprite(the currentSpriteNum - 1).locH = -320
  23.     else
  24.       sprite(the currentSpriteNum - 1).locH = 320
  25.     end if
  26.     if firstchapter = (chaptercount - 8) then
  27.       sprite(the currentSpriteNum).locH = -320
  28.     else
  29.       sprite(the currentSpriteNum).locH = 320
  30.     end if
  31.   end if
  32. end
  33.